<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->get('map', 'HomeController@map');
    $router->resource('system/setting', 'System\SettingController');
    $router->resource('site/article', 'SiteArticleController');
    $router->resource('activity', 'ActivityController');
    $router->resource('user', 'UserController');
    $router->resource('users/experience', 'UsersExperienceController');
    $router->resource('users/feedback', 'UsersFeedbackController');
    $router->resource('users/withdrawal', 'Users\WithdrawalLogController');
    $router->resource('mental/type', 'Mental\TypeController');
    $router->resource('mental/mental', 'Mental\MentalController');
    $router->resource('mental/logs', 'Mental\LogsController');
    $router->resource('mental/options', 'Mental\OptionsController');
    $router->resource('mental/results', 'Mental\ResultsController');
    $router->resource('mental/topic', 'Mental\TopicController');
    $router->resource('users/talent', 'Users\TalentApplyController');
    $router->resource('users/talent-info', 'Users\TalentInfoController');
    $router->resource('order/order', 'OrderAppointController');
    $router->resource('order/bill', 'Users\UsersMoneyLogController');
    $router->resource('order/recharge-opt', 'Order\RechargeOptionController');
    $router->resource('order/recharge-order', 'Order\RechargeOrderController');
    $router->resource('divination/tarot', 'Divination\TarotController');
    $router->resource('divination/divination', 'Divination\DivinationController');
    $router->resource('divination/answer', 'Divination\AnswerController');
    $router->resource('site/banner', 'Site\SiteBannerController');

    $router->resource('post/list', 'Dynamic\ListsController');
    $router->resource('post/tag', 'Dynamic\TagController');
    $router->resource('post/report', 'Dynamic\ReportController');
    $router->resource('post/review', 'Dynamic\ReviewController');

    $router->resource('coll/list', 'Coll\CollectionController');
    $router->resource('coll/order/place', 'Coll\CollOrderController');

});
